<?php

// Filesystem access script
// Implies methods for list, create, delete and get content for files and folders

include "../config.php";
include "../common/common.php";
include "filesystemactions.php";

switch ($_GET['action']) {
case 'get_subitems':
	
	FileSystemAction::get_subitems($_GET['filter'],$_GET['target']);
	
	break;
case 'mkdir':
	
	FileSystemAction::mkdir($_GET['target']);
	
	break;
case 'rmdir': 
	
	FileSystemAction::rmdir($_GET['target']);

	break;
case 'md5':
	
	FileSystemAction::md5($_GET['target']);

	break;
case 'get_content':
	
	FileSystemAction::get_content($_GET['target']);

	break;
default:
	EchoError('UNKNOWN_ACTION','');
}

?>
